﻿@{
	Script.Require("CKEditor");
    var fullFieldName = Html.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldName("Text");
    var id = TagBuilder.CreateSanitizedId(fullFieldName);
    // TODO: How to get alternate editor configs?
    id = id.Replace('[', '_').Replace(']', '_');
}

@using(Script.Foot()) {
<script type="text/javascript">
//<![CDATA[
	CKEDITOR.replace('@id',@Display.CKEditor_Config());
//]]>
</script>
}
@Html.TextArea("Text", (string)Model.Text, 50, 80, new { @class = "html" })
